package com.model;

import java.util.Date;

/**
 *
 * @author Lang Van Hao
 */
public class Defect {

	/*
	 * Main Properties
	 */
	private int defectID;
	private int projectID;
	private int creatorId;
	private int defectorId;
	private int assignToId;
	private int severityID;
	private int priorityID;
	private int defectTypeID;
	private Date defectCreateDate;
	private Date deadline;
	private int qcActivityID;
	private int orginID;
	private int productTypeID;
	private int productID;
	private String testCaseID;
	private Date fixDate;
	private Date closeDate;
	private int defectStatusID;
	private String title;
	private String defectDescription;
	private String causeAnalysic;
	private String correctiveAction;

	/*
	 * Sub Properties
	 */
	private String creatorName;
	private String defectorName;
	private String assignToName;
	
	/*
	 * Constructor
	 */
	
	/**
	 * @return the defectID
	 */
	public int getDefectID() {
		return defectID;
	}
	public Defect(int defectID, int projectID, int creatorId, int defectorId,
			int assignToId, int severityID, int priorityID, int defectTypeID,
			Date defectCreateDate, Date deadline, int qcActivityID,
			int orginID, int productTypeID, int productID, String testCaseID,
			Date fixDate, Date closeDate, int defectStatusID, String title,
			String defectDescription, String causeAnalysic,
			String correctiveAction, String creatorName, String defectorName,
			String assignToName) {
		super();
		this.defectID = defectID;
		this.projectID = projectID;
		this.creatorId = creatorId;
		this.defectorId = defectorId;
		this.assignToId = assignToId;
		this.severityID = severityID;
		this.priorityID = priorityID;
		this.defectTypeID = defectTypeID;
		this.defectCreateDate = defectCreateDate;
		this.deadline = deadline;
		this.qcActivityID = qcActivityID;
		this.orginID = orginID;
		this.productTypeID = productTypeID;
		this.productID = productID;
		this.testCaseID = testCaseID;
		this.fixDate = fixDate;
		this.closeDate = closeDate;
		this.defectStatusID = defectStatusID;
		this.title = title;
		this.defectDescription = defectDescription;
		this.causeAnalysic = causeAnalysic;
		this.correctiveAction = correctiveAction;
		this.creatorName = creatorName;
		this.defectorName = defectorName;
		this.assignToName = assignToName;
	}
	/**
	 * @param defectID the defectID to set
	 */
	public void setDefectID(int defectID) {
		this.defectID = defectID;
	}
	/**
	 * @return the projectID
	 */
	public int getProjectID() {
		return projectID;
	}
	/**
	 * @param projectID the projectID to set
	 */
	public void setProjectID(int projectID) {
		this.projectID = projectID;
	}
	/**
	 * @return the creatorId
	 */
	public int getCreatorId() {
		return creatorId;
	}
	/**
	 * @param creatorId the creatorId to set
	 */
	public void setCreatorId(int creatorId) {
		this.creatorId = creatorId;
	}
	/**
	 * @return the defectorId
	 */
	public int getDefectorId() {
		return defectorId;
	}
	/**
	 * @param defectorId the defectorId to set
	 */
	public void setDefectorId(int defectorId) {
		this.defectorId = defectorId;
	}
	/**
	 * @return the assignToId
	 */
	public int getAssignToId() {
		return assignToId;
	}
	/**
	 * @param assignToId the assignToId to set
	 */
	public void setAssignToId(int assignToId) {
		this.assignToId = assignToId;
	}
	/**
	 * @return the severityID
	 */
	public int getSeverityID() {
		return severityID;
	}
	/**
	 * @param severityID the severityID to set
	 */
	public void setSeverityID(int severityID) {
		this.severityID = severityID;
	}
	/**
	 * @return the priorityID
	 */
	public int getPriorityID() {
		return priorityID;
	}
	/**
	 * @param priorityID the priorityID to set
	 */
	public void setPriorityID(int priorityID) {
		this.priorityID = priorityID;
	}
	/**
	 * @return the defectTypeID
	 */
	public int getDefectTypeID() {
		return defectTypeID;
	}
	/**
	 * @param defectTypeID the defectTypeID to set
	 */
	public void setDefectTypeID(int defectTypeID) {
		this.defectTypeID = defectTypeID;
	}
	/**
	 * @return the defectCreateDate
	 */
	public Date getDefectCreateDate() {
		return defectCreateDate;
	}
	/**
	 * @param defectCreateDate the defectCreateDate to set
	 */
	public void setDefectCreateDate(Date defectCreateDate) {
		this.defectCreateDate = defectCreateDate;
	}
	/**
	 * @return the deadline
	 */
	public Date getDeadline() {
		return deadline;
	}
	/**
	 * @param deadline the deadline to set
	 */
	public void setDeadline(Date deadline) {
		this.deadline = deadline;
	}
	/**
	 * @return the qcActivityID
	 */
	public int getQcActivityID() {
		return qcActivityID;
	}
	/**
	 * @param qcActivityID the qcActivityID to set
	 */
	public void setQcActivityID(int qcActivityID) {
		this.qcActivityID = qcActivityID;
	}
	/**
	 * @return the orginID
	 */
	public int getOrginID() {
		return orginID;
	}
	/**
	 * @param orginID the orginID to set
	 */
	public void setOrginID(int orginID) {
		this.orginID = orginID;
	}
	/**
	 * @return the productTypeID
	 */
	public int getProductTypeID() {
		return productTypeID;
	}
	/**
	 * @param productTypeID the productTypeID to set
	 */
	public void setProductTypeID(int productTypeID) {
		this.productTypeID = productTypeID;
	}
	/**
	 * @return the productID
	 */
	public int getProductID() {
		return productID;
	}
	/**
	 * @param productID the productID to set
	 */
	public void setProductID(int productID) {
		this.productID = productID;
	}
	/**
	 * @return the testCaseID
	 */
	public String getTestCaseID() {
		return testCaseID;
	}
	/**
	 * @param testCaseID the testCaseID to set
	 */
	public void setTestCaseID(String testCaseID) {
		this.testCaseID = testCaseID;
	}
	/**
	 * @return the fixDate
	 */
	public Date getFixDate() {
		return fixDate;
	}
	/**
	 * @param fixDate the fixDate to set
	 */
	public void setFixDate(Date fixDate) {
		this.fixDate = fixDate;
	}
	/**
	 * @return the closeDate
	 */
	public Date getCloseDate() {
		return closeDate;
	}
	/**
	 * @param closeDate the closeDate to set
	 */
	public void setCloseDate(Date closeDate) {
		this.closeDate = closeDate;
	}
	/**
	 * @return the defectStatusID
	 */
	public int getDefectStatusID() {
		return defectStatusID;
	}
	/**
	 * @param defectStatusID the defectStatusID to set
	 */
	public void setDefectStatusID(int defectStatusID) {
		this.defectStatusID = defectStatusID;
	}
	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * @return the defectDescription
	 */
	public String getDefectDescription() {
		return defectDescription;
	}
	/**
	 * @param defectDescription the defectDescription to set
	 */
	public void setDefectDescription(String defectDescription) {
		this.defectDescription = defectDescription;
	}
	/**
	 * @return the causeAnalysic
	 */
	public String getCauseAnalysic() {
		return causeAnalysic;
	}
	/**
	 * @param causeAnalysic the causeAnalysic to set
	 */
	public void setCauseAnalysic(String causeAnalysic) {
		this.causeAnalysic = causeAnalysic;
	}
	/**
	 * @return the correctiveAction
	 */
	public String getCorrectiveAction() {
		return correctiveAction;
	}
	/**
	 * @param correctiveAction the correctiveAction to set
	 */
	public void setCorrectiveAction(String correctiveAction) {
		this.correctiveAction = correctiveAction;
	}
	/**
	 * @return the creatorName
	 */
	public String getCreatorName() {
		return creatorName;
	}
	/**
	 * @param creatorName the creatorName to set
	 */
	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}
	/**
	 * @return the defectorName
	 */
	public String getDefectorName() {
		return defectorName;
	}
	/**
	 * @param defectorName the defectorName to set
	 */
	public void setDefectorName(String defectorName) {
		this.defectorName = defectorName;
	}
	/**
	 * @return the assignToName
	 */
	public String getAssignToName() {
		return assignToName;
	}
	/**
	 * @param assignToName the assignToName to set
	 */
	public void setAssignToName(String assignToName) {
		this.assignToName = assignToName;
	}

    
}
